<?php
require("../dbhead.php");

// Authorization routine 필요

header("Content-Type: text/html; charset=UTF-8");      // UTF-8
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>EMRS workshop register page</title>
		<link rel="stylesheet" type="text/css" href="../css/default.css" />
	</head>
	<body>
		<form name="register_form" id="register_form" method="post" action="workshop_register.php">
			<div>
				<label for="name">워크샵 명칭</label> : <input type="text" name="name" id="name" />
			</div>
			<div>
				<label for="society">개최 연구회</label> :
				<select name="society" id="society">
					<?php 
						$query = "SELECT sid, name FROM society";
						$result = mysql_query($query) or dberr($connect, $query, __LINE__);
						while ($row = mysql_fetch_array($result)) {
							echo "\t\t\t\t\t<option value=\"${row['sid']}\">${row['name']}</option>\n";
						}
					?></select>
			</div>
			<div>
				<label for="description">설명</label> : <br />
				<textarea name="description" id="description"></textarea>
			</div>
			<div>
				<input type="submit">
			</div>
		</form>
	</body>
</html>